home *** CD-ROM | disk | FTP | other *** search
/ One Click 27 / CD da revista One Click #27 - Photoshop Megapack (2005).iso / Interface / it.dig / scripts / __Packages / mx / utils / IteratorImpl.as < prev    next >
Encoding:
Text File  |  2005-10-28  |  358 b   |  19 lines

  1. class mx.utils.IteratorImpl
  2. {
  3.    var _collection;
  4.    var _cursor;
  5.    function IteratorImpl(coll)
  6.    {
  7.       this._collection = coll;
  8.       this._cursor = 0;
  9.    }
  10.    function hasNext()
  11.    {
  12.       return this._cursor < this._collection.getLength();
  13.    }
  14.    function next()
  15.    {
  16.       return this._collection.getItemAt(this._cursor++);
  17.    }
  18. }
  19.